package com.example.spring.bean;

/**
 * ClassName:Student
 * Package:com.example.spring.bean
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/8-15:31
 * @Version:v1.0
 */
public class Student {

    private String name;

    private Clazz clazz;//学生属于那个班级

    public void setClazz(Clazz clazz) {
        this.clazz = clazz;
    }

    public Clazz getClazz() {
        return clazz;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Override
    public String toString() {
        return "Student{" +
               "name='" + name + '\'' +
               ", clazz=" + clazz +
               '}';
    }
}
